package cn.erp.app.service;

import java.util.List;

import com.jfinal.plugin.activerecord.Page;

import cn.erp.common.model.SvcMaterielSubdivision;

public class MaterielService {
public static MaterielService me = new MaterielService();
public List<SvcMaterielSubdivision> getAll() {
	return SvcMaterielSubdivision.dao.find("select * from svc_materiel_subdivision");
}

public Page<SvcMaterielSubdivision> getAllWithPaginate(int pageNumber,int pageSize) {
	return SvcMaterielSubdivision.dao.paginate(pageNumber, pageSize, "select * ", "from svc_materiel_subdivision");
}


}
